// 接口导入
import instance from '../utils/request'
// 导入工具函数
// import { getToken } from '../utils/token'

// 搜索接口抽取
const getSearchResult = ({ q, page, per_page }) => {
  return instance({
    url: '/v1_0/search',
    method: 'get',
    params: { q, page, per_page }
    // headers: { Authorization: `Bearer ${getToken().token}` }
  })
}
// 暴露出去
export { getSearchResult }
